package services

import (
	"new/dao"
	"new/models"
)

//显示学生信息
func GetAllStudent() (error, []models.Student, int64) {
	err, Studentdata, total := dao.GetAllStudent()
	return err, Studentdata, total
}

//删除学生信息
func DelStudent(sno int) error {
	err := dao.DelStudent(sno)
	return err
}

//更改学生信息
func UpdateStudent(Student models.Student) error {
	err := dao.UpdateStudent(Student)
	return err
}

//增加顾学生信息
func AddStudent(Student models.Student) error {
	err := dao.AddStudent(Student)
	return err
}
